package action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import entity.TeacherSubject;
import mapper.TeacherSubjectMapper;

@Controller
public class Action {

	@Autowired
	TeacherSubjectMapper teacherSubjectMapper;
	@RequestMapping("scoreList.do")
	protected String scoreList(Model model) {
		TeacherSubject a = teacherSubjectMapper.findById("1");
		System.out.println(a.getSubject().getName());
		return "/scoreList";
	}
}
